package com.Archive.thirdWeek.pat;

import java.util.ArrayList;
import java.util.HashMap;

public abstract class list {
    public static void main(String[] args) {
        Penguin penguin1 = new Penguin("Tom","Male");
        Penguin penguin2 = new Penguin("Soya","Female");
        Penguin penguin3 = new Penguin("Rose","Female");
        Penguin penguin4 = new Penguin("Jack","Male");

        HashMap map = new HashMap();
        map.put(penguin1.getName(),penguin1;
        map.put(penguin2.getName(),penguin2;
        map.put(penguin3.getName(),penguin3;
        map.put(penguin4.getName(),penguin4;

    }
}
